import {ROUTE_NAME_BUSINESS, ROUTE_NAME_BUSINESS_HOME} from '@/constant/router_const.js'

export default {
    name: ROUTE_NAME_BUSINESS,
    path: 'business',
    component: () => import('@/views/business/Business.vue'),
    children: [
        // 商家平台页面默认路由重定向配置
        {
            path: '',
            redirect: {name: ROUTE_NAME_BUSINESS_HOME},
        },
        // 商家平台主页路由配置
        {
            name: ROUTE_NAME_BUSINESS_HOME,
            path: 'home',
            component: () => import('@/views/business/components/home/Home.vue'),
        },
        // 商家平台认证页面路由配置
        {
            name: 'businessAuthentication',
            path: 'authentication',
            component: () => import('@/views/business/components/authentication/Authentication.vue'),
        },
    ]
}